<template>
  <div>
      <input type="text" v-model="value">
      <p>{{value}}</p>
  </div>
</template>

<script>

import throttle from '../../config/throttle';
export default {
    data() {
        return {
            value:''
        }
    },
    watch:{
        value:throttle(function(){
            this.handleChange()
        })
    },
    methods: {
        handleChange(){
            console.log(this.value);
        }
    }
    
}
</script>

<style>

</style>